Duplication and Partial Evaluation For a Better Understanding of Reflective Languages
نویسندگان
چکیده
This paper presents a general implementation framework for reflective languages. It allows us to systematically build reflective languages which have the following favorable properties: (1) user programs are allowed to access and change (parts of) metalevel interpreters, (2) reflective facilities are available at every level, (hence there exists conceptually an infinite tower of interpreters), and (3) the interpreter runs as efficiently as the conventional (directly implemented) metacircular interpreter when reflection is not used. Our scheme is divided into three stages. First, we define interpreters which give the operational semantics of each level, and conceptually construct the infinite tower of these interpreters. They are then duplicated to obtain directly executed interpreters, while introducing double interpretation to maintain redefinability of interpreters. Finally, partial evaluation is employed to collapse the double interpretation into single interpretation. We illustrate our scheme by implementing a particular reflective language called Black in Scheme, but it is general enough to be applied to other reflective languages. The paper gives the complete Scheme implementation of Black and demonstrates some examples. We also show how a system with the delta abstraction introduced by Blond can be constructed in our framework.
منابع مشابه
Reflective Practice in Nursing Care
Introduction: Reflective practice is a generic term for intellectual and affective activities that create new understanding and appreciation of experiences. Various studies have emphasized on the benefits of reflection in nursing. This article reviewed benefits and barriers of reflective practice in nursing. Methods: In this review article, library references, some scientific databases (Elsevi...
متن کاملDuplication and Partial Evaluation | for a Better Understanding of Re Blockinective Languages |
This paper presents a general implementation framework for re ective languages. It allows us to systematically build re ective languages which have the following favorable properties: (1) user programs are allowed to access and change (parts of) metalevel interpreters, (2) re ective facilities are available at every level, (hence there exists conceptually an in nite tower of interpreters), and ...
متن کاملI-34: NRY Haplotype Analysis: towards A Better Understanding of The Genetic Basis of Spermatogenic Failure
It has been established that the Y chromosome carries genes required for spermatogenesis and male fertility. For many decades worldwide screening for gene identification has been conducted in research laboratories. However, it has been a difficult process in identifying such genes (i.e. causative mutations) which could explain the phenotypic variation and could be potentially used as markers fo...
متن کاملClassroom Discourse Analysis as a Tool for Reflective Practice: Focus on Form Approach
The present research aimed at investigating the interaction of the classroom talk to have a better understanding of the teachers’ practice teaching which can pave the way for reflection on teaching. The study benefitted from conversation analytic perspective to qualitatively and interpretively examine the classroom discourse of the teacher-learner interaction. The classroom talk was analyzed th...
متن کاملFrom Craft to Reflective Art and Science; Comment on “Metrics and Evaluation Tools for Patient Engagement in Healthcare Organization- and System-Level Decision-Making: A Systematic Review”
Patient engagement practices are increasingly incorporated in health research, governance, and care. More recently, a large number of evaluation tools and metrics have been developed to support engagement evaluation. This growing interest in evaluation reflects a maturation of the patient engagement field, moving from a “craft” to a reflective “art and science,” with more explicit expected bene...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Lisp and Symbolic Computation
دوره 9 شماره
صفحات -
تاریخ انتشار 1996